import request from '@/utils/request'

export function bomDetailBillOfMaterial(data) {
  return request({
    url: '/engineering/bomDetail/billOfMaterial',
    method: 'post',
    data: data
  })
}
export function bomDetailBillOfMaterial1(data) {
  return request({
    url: '/engineering/requirement/getEngineeringRequirementMaterialsForOutSource?planProductionDetailIds=' + data,
    method: 'get'
  })
}
export function requireBillOfMaterial2(data) {
  return request({
    url: '/engineering/requirement/getEngineeringRequirementMaterialsForOrder?planProductionDetailIds=' + data,
    method: 'get'
  })
}
// export function getRequirementList(data) {
//   return request({
//     url: '/engineering/requirement/getEngineeringRequirementsMaterialByMaterialId/' + data,
//     method: 'get'
//   })
// }
export function getRequirementList(data) {
  return request({
    url: '/engineering/requirement/getEngineeringRequirementsMaterialByMaterialId',
    method: 'post',
    data: data
  })
}
export function requireBillOfMaterial(data) {
  return request({
    url: '/engineering/require/billOfMaterial',
    method: 'post',
    data: data
  })
}
export function listForMaterialDetail(data) {
  return request({
    url: '/plan/production/listForMaterialDetail',
    method: 'post',
    data: data
  })
}
export function listProduction(data) {
  return request({
    url: '/plan/production/list',
    method: 'post',
    data: data
  })
}
